package org.willthink.dao.member.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.willthink.dao.member.MemberDAO;

public class MemberDAOImpl extends SqlMapClientDaoSupport implements MemberDAO {

	@Override
	public Map<String, String> getMemberInfo(String memberId) throws SQLException {	
		
		return (Map<String, String>) getSqlMapClient().queryForList("member.getMemberInfo", memberId);
	}

	@Override
	public List<Map<String, String>> getMemberList() throws SQLException {
		
		return getSqlMapClient().queryForList("member.getMemberList");
	}

	@Override
	public Map<String, String> memberLogin(Map<String, String> map) throws SQLException {
		
		return (Map<String, String>) getSqlMapClient().queryForObject("member.memberLogin", map);
	}

}
